#include <rtthread.h>
#include "lfs_if.h"
static void show_reboot_time(int argc, char**argv)
{
  lfs_file_t *file;
  short boot_time;
  file = file_open("reboot_time.bin", LFS_O_RDONLY);
  if(file == NULL) {
    printf("reboot_time.bin open faild.\n");
  }
  else {
    file_seek(file, 0, LFS_SEEK_SET);
    file_read(&boot_time, 2, file);
    file_close(file);
    rt_kprintf("boot_time = %d\n", boot_time);
  }
  return;
}
MSH_CMD_EXPORT(show_reboot_time, Show REBOOT TIMES);